package wec_wallet.ebo.com.activity.customservice;

import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;

import bassproject.ebo.com.ebobass.activity.MyBassAppCompatActivity;
import wec_wallet.ebo.com.R;

/**
 * Created by admin on 2018/3/28.
 */

public class ConversationActivity extends MyBassAppCompatActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_conversation);
        findViewById(R.id.actionbar_back).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                onBackPressed();
            }
        });
    }

    @Override
    public void onBackPressed() {
        EBOConversationFragment fragment = (EBOConversationFragment) getSupportFragmentManager().findFragmentById(R.id.conversation);
        if (!fragment.onBackPressed()) {
            finish();
        }
    }

    @Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
        return super.onKeyDown(keyCode, event);
    }

}
